Send a Photo
This is a simple example on how to send a photo.
public static void main(String[] args) throws GettingUpdatesException, IOException { String yourToken = "YOUR TOKEN"; TelegramBot b = new TelegramBot(yourToken); b.sendPhoto("chat_id", new File("path"), "caption", false, 0, null); }
If you want to see an exciting example on how to use it just give a look to This post!